package 策略模式;

public class Test {
    static void test(Action action){
        new Fun(action).funMo();
    }
    public static void main(String[] args) {
//        test(new ActionImpl());
        test(new Action() {
            @Override
            public void eight() {
                System.out.println("eight......");

            }

            @Override
            public void four() {
                System.out.println("four......");
            }
        });
    }
}
